package com.chixing.day05_oop;


public class SavingAccount extends Account {

    public SavingAccount(){
        super();
    }


    public SavingAccount(int bankId, String rootName, String rootPhone, int bankPassword, int rootIdCard, String email, float accBalance) {
        super(bankId, rootName, rootPhone, bankPassword, rootIdCard, email, accBalance);

            // this.bankId = bankId;  本应这么写 但是父类中已经get、set了，所以直接使用父类调用 super() 如果没写就调用默认的无参构造函数


        SavingAccount sa2 = new SavingAccount();
        System.out.println(sa2 instanceof SavingAccount);
        }
    }


